<template>
<div class="my_b">
  <div class="my_aTop">当前位置: 订单管理</div>
  <div class="my_t">
    <div class="my_left">
      <div>查询时间:</div>
      <div class="block">
        <el-date-picker v-model="value2" type="daterange" align="right" unlink-panels range-separator="~" start-placeholder="2020-10-09 21" end-placeholder="2022-10-09 21" :picker-options="pickerOptions">
        </el-date-picker>
      </div>
    </div>
    <div class="my_right">
      <div>订单类型：</div>
      <span>待确定</span>
      <span>回告征订单</span>
      <span>征订单</span>
      <span>已完成</span>
    </div>
  </div>
  <div class="my_content">
    <div class="my_cont">
      <span>商品信息</span>
      <span>描述</span>
      <span>定价</span>
      <span>作者</span>
      <span>数量</span>
      <span>操作</span>
    </div>
    <div class="my_box">
      <div class="box">
        <div class="top">
          <div class="top_1">
            <input type="checkbox" />
            <div class="box_dd">
              订单号：86147901561741039hh9
            </div>
            <span class="active">2020-07-21</span>
          </div>
          <div class="box_z">待确定</div>
          <div class="box_b">
            <div class="botton">删除订单</div>
            <div class="botton" @click="temp">确认订单</div>
          </div>
        </div>
        <div class="contetxt_box">
          <div class="content">
            <div class="img"></div>
            <div class="txt">
              中国文学课（上下册）独家签名版（余秋雨、韩寒、张大春重磅推荐，付费课程收听超1500万人次）
            </div>
            <div class="active">¥64.00</div>
            <div class="active">王蒙</div>
            <div class="num">
              <el-input-number class="num" v-model="num" controls-position="right" @change="handleChange" :min="1" :max="10"></el-input-number>
            </div>
            <div class="active">删除</div>
          </div>
          <div class="content">
            <div class="img"></div>
            <div class="txt">
              中国文学课（上下册）独家签名版（余秋雨、韩寒、张大春重磅推荐，付费课程收听超1500万人次）
            </div>
            <div class="active">¥64.00</div>
            <div class="active">王蒙</div>
            <div class="num">
              <el-input-number class="num" v-model="num" controls-position="right" @change="handleChange" :min="1" :max="10"></el-input-number>
            </div>
            <div class="active">删除</div>
          </div>
          <div class="my_boxB">
            <div class="box_img">
              <img src="../../../assets/image/orde/ll (1).png" alt="" />
              <span>订单基础信息</span>
            </div>
            <div>总计：<span> ¥ 9999999.99</span></div>
          </div>
        </div>
        <div class="my_box2">
          <div>采购教材学年：2020 采购</div>
          <div>采购学期：上学期/下学期</div>
          <div>采购系统：计算机管理学院</div>
          <div>采购人：xxx</div>
          <div>联系电话：18559166666</div>
          <div>采购教材学年：2020 采购</div>
        </div>
        <div class="my_box2">
          <div>物流信息：xxxxxxxxxxxxxxxxxxxxxxxxxx</div>
          <div class="active">修改</div>
        </div>
      </div>
    </div>
    <div class="my_box">
      <div class="box">
        <div class="top">
          <div class="top_1">
            <input type="checkbox" />
            <div class="box_dd">
              订单号：86147901561741039hh9
            </div>
            <span class="active">2020-07-21</span>
          </div>
          <div class="box_z">待确定</div>
          <div class="box_b">
            <div class="botton">删除订单</div>
            <div class="botton">确认订单</div>
          </div>
        </div>
        <div class="contetxt_box">
          <div class="content">
            <div class="img"></div>
            <div class="txt">
              中国文学课（上下册）独家签名版（余秋雨、韩寒、张大春重磅推荐，付费课程收听超1500万人次）
            </div>
            <div class="active">¥64.00</div>
            <div class="active">王蒙</div>
            <div class="num">
              <el-input-number class="num" v-model="num" controls-position="right" @change="handleChange" :min="1" :max="10"></el-input-number>
            </div>
            <div class="active">删除</div>
          </div>
          <div class="content">
            <div class="img"></div>
            <div class="txt">
              中国文学课（上下册）独家签名版（余秋雨、韩寒、张大春重磅推荐，付费课程收听超1500万人次）
            </div>
            <div class="active">¥64.00</div>
            <div class="active">王蒙</div>
            <div class="num">
              <el-input-number class="num" v-model="num" controls-position="right" @change="handleChange" :min="1" :max="10"></el-input-number>
            </div>
            <div class="active">删除</div>
          </div>
          <div class="my_boxB">
            <div class="box_img">
              <img src="../../../assets/image/orde/ll (1).png" alt="" />
              <span>订单基础信息</span>
            </div>
            <div>总计：<span> ¥ 9999999.99</span></div>
          </div>
        </div>
        <div class="my_box2">
          <div>采购教材学年：2020 采购</div>
          <div>采购学期：上学期/下学期</div>
          <div>采购系统：计算机管理学院</div>
          <div>采购人：xxx</div>
          <div>联系电话：18559166666</div>
          <div>采购教材学年：2020 采购</div>
        </div>
        <div class="my_box2">
          <div>物流信息：xxxxxxxxxxxxxxxxxxxxxxxxxx</div>
          <div class="active">修改</div>
        </div>
      </div>
    </div>
    <div class="my_box">
      <div class="box">
        <div class="top">
          <div class="top_1">
            <input type="checkbox" />
            <div class="box_dd">
              订单号：86147901561741039hh9
            </div>
            <span class="active">2020-07-21</span>
          </div>
          <div class="box_z" @click="temp">待确定</div>
          <div class="box_b">
            <div class="botton">删除订单</div>
            <div class="botton">确认订单</div>
          </div>
        </div>
        <div class="contetxt_box">
          <div class="content">
            <div class="img"></div>
            <div class="txt">
              中国文学课（上下册）独家签名版（余秋雨、韩寒、张大春重磅推荐，付费课程收听超1500万人次）
            </div>
            <div class="active">¥64.00</div>
            <div class="active">王蒙</div>
            <div class="num">
              <el-input-number class="num" v-model="num" controls-position="right" @change="handleChange" :min="1" :max="10"></el-input-number>
            </div>
            <div class="active">删除</div>
          </div>
          <div class="content">
            <div class="img"></div>
            <div class="txt">
              中国文学课（上下册）独家签名版（余秋雨、韩寒、张大春重磅推荐，付费课程收听超1500万人次）
            </div>
            <div class="active">¥64.00</div>
            <div class="active">王蒙</div>
            <div class="num">
              <el-input-number class="num" v-model="num" controls-position="right" @change="handleChange" :min="1" :max="10"></el-input-number>
            </div>
            <div class="active">删除</div>
          </div>
          <div class="my_boxB">
            <div class="box_img">
              <img src="../../../assets/image/orde/ll (1).png" alt="" />
              <span>订单基础信息</span>
            </div>
            <div>总计：<span> ¥ 9999999.99</span></div>
          </div>
        </div>
        <div class="my_box2">
          <div>采购教材学年：2020 采购</div>
          <div>采购学期：上学期/下学期</div>
          <div>采购系统：计算机管理学院</div>
          <div>采购人：xxx</div>
          <div>联系电话：18559166666</div>
          <div>采购教材学年：2020 采购</div>
        </div>
        <div class="my_box2">
          <div>物流信息：xxxxxxxxxxxxxxxxxxxxxxxxxx</div>
          <div class="active">修改</div>
        </div>
      </div>
    </div>
  </div>
</div>
</template>

<script>
export default {
  data() {
    return {
      num: 1,
      pickerOptions: {
        shortcuts: [{
            text: '最近一周',
            onClick(picker) {
              const end = new Date()
              const start = new Date()
              start.setTime(
                start.getTime() - 3600 * 1000 * 24 * 7
              )
              picker.$emit('pick', [start, end])
            }
          },
          {
            text: '最近一个月',
            onClick(picker) {
              const end = new Date()
              const start = new Date()
              start.setTime(
                start.getTime() - 3600 * 1000 * 24 * 30
              )
              picker.$emit('pick', [start, end])
            }
          },
          {
            text: '最近三个月',
            onClick(picker) {
              const end = new Date()
              const start = new Date()
              start.setTime(
                start.getTime() - 3600 * 1000 * 24 * 90
              )
              picker.$emit('pick', [start, end])
            }
          }
        ]
      },
      value1: '',
      value2: ''
    }
  },
  methods: {
    handleChange(value) {
      console.log(value)
    },
    temp() {
      this.$router.push('/index/yes')
    }
  }
}
</script>

<style lang="scss" scoped>
.my_b {
  height: 100%;
  background: #ffff;
}

.my_aTop {
  height: 39px;
  background: #960006;
  color: #ffff;
  line-height: 39px;
  padding-left: 30px;
}

.my_t {
  height: 42px;
  background: #cccccc;
  display: flex;
  margin-top: 7px;
  justify-content: space-around;

  .my_left {
    display: flex;
    align-items: center;

    .block {
      width: 325px;
      background: #ffffff;
      border-radius: 15px;
      margin-left: 8px;
    }
  }

  .my_right {
    display: flex;
    align-items: center;

    span {
      display: inline-block;
      padding: 2px 9px;
      height: 31px;
      line-height: 25px;
      margin-right: 9px;
      background: #ffffff;
      border-radius: 16px;
      font-size: 14px;
    }
  }
}

.my_content {
  background: #ffffff;
}

.my_cont {
  width: 100%;
  height: 47px;
  background: #f3e3e4;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 8px;
}

.my_box {
  width: 921px;
  height: 440px;
  background: #f2f2f2;
  margin: 15px auto;

  .box {
    width: 852px;
    height: 370px;
    margin: 0 auto;
    padding-top: 20px;

    .top {
      display: flex;
      width: 100%;
      justify-content: space-between;
      align-items: center;
      height: 40px;
      line-height: 40px;

      .top_1 {
        display: flex;
        justify-content: space-between;

        input {
          margin: auto 0;
        }

        .box_dd {
          font-size: 14px;
          font-family: Adobe Heiti Std;
          font-weight: normal;
          color: #000000;
          margin: 0 8px;
        }

        span {
          margin-left: 10px;
        }
      }

      .box_z {
        width: 85px;
        height: 31px;
        background: #960006;
        border-radius: 16px;
        font-size: 14px;
        font-family: Adobe Heiti Std;
        font-weight: normal;
        color: #ffffff;
        line-height: 31px;
        text-align: center;
        margin-left: -50px;
      }

      .box_b {
        display: flex;

        .botton {
          width: 85px;
          height: 31px;
          background: #ffffff;
          border: 1px solid #8a8a8a;
          border-radius: 16px;
          line-height: 28px;
          text-align: center;
          font-size: 14px;
          font-family: Adobe Heiti Std;
          font-weight: normal;
          color: #960007;
          margin-left: 20px;
        }
      }
    }

    .contetxt_box {
      height: 291px;
      border-top: 1px solid #7d7d7d;
      border-bottom: 1px solid #7d7d7d;

      .content {
        height: 107px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin-top: 18px;

        .img {
          width: 78px;
          height: 107px;
          background: #fff;
        }

        .txt {
          width: 251px;
          height: 44px;
          width: 251px;
          height: 44px;
          font-size: 14px;
          font-family: Adobe Heiti Std;
          font-weight: normal;
          color: #000000;
          line-height: 15px;
        }

        .num {
          width: 72px;
          height: 38px;
        }
      }

      .my_boxB {
        display: flex;
        justify-content: space-between;
        line-height: 30px;
        padding: 0 8px;
        font-size: 14px;
        font-family: Adobe Heiti Std;
        font-weight: normal;
        color: #000000;

        .box_img {
          display: flex;
          align-items: center;
        }

        img {
          width: 29px;
          height: 28px;
        }
      }
    }

    .my_box2 {
      display: flex;
      justify-content: space-between;
      padding: 10px 2px;
      font-size: 12px;
      font-family: Adobe Heiti Std;
      font-weight: normal;
      color: #848484;
    }
  }

  .active {
    font-size: 14px;
    font-family: Adobe Heiti Std;
    font-weight: normal;
    color: #960007;
  }
}

/deep/ .el-menu {
  width: 100%;
}

/deep/ .el-date-editor--daterange.el-input__inner,
.el-date-editor--timerange.el-input {
  height: 30px;
  width: 360px;
  border-radius: 50px;
  line-height: 30px;
}

/deep/ .el-range-separator {
  line-height: 22px;
  padding: 0 2px;
  display: block;
}

/deep/ .el-date-editor .el-range-separator {
  width: 6%;
}

/deep/ .el-range__icon {
  line-height: 2px;
}
</style>
